cast vt. (cast; cast) 1.投,扔,掷,抛。 ★此义动词通常用 throw, cast 只用于若干特殊句子。 2.丢弃,抛弃;脱掉(衣服);(蛇)脱(皮),(鸟)换(毛),(鹿)换(角);(树)落(叶);(马)脱落(掌铁)。 3.(兽)早产,(果树)落(果)。 4.【冶金】浇铸,铸造;【印刷】把(纸型)浇成铅版。 5.计算;合计。 6.【戏剧】分配(角色),选派(角色)。 7.【法律】使败诉。 8.解雇,辞退,赶走,撵走;淘汰(不及格学生)。 9.投射(影子、光线) (on);(眼光)钉住(某物)。 10.筑,挖造。 11.算(卦),占卜。 12.【航海】使改变航向。 13.使弯曲[翘起];扭弯。 cast anchor 抛锚。 cast a net 撒网。 cast seed 撒种,播种。 cast a vote 投票。 cast a dice 掷骰子。 cast the lead 【航海】锤测(水深)。 cast the blame on sb. 加罪[嫁祸]于人。 cast a shoe (马)掉了铁掌。 cast a spell on sb. 迷惑人。 cast a stone at sb. 拿石子打人;攻击[中伤]人。 cast a glance at 把(眼光)钉住,用(眼光)一扫。 casta (new) light on 给与(新的)解决线索[解释]。 castaccounts 计算。 be cast in a different mould 性质[气质]不同。 be cast in a suit 败诉。 be cast in [for] damages 被判决赔偿损失。 be cast in heroic mould 有英雄的性格。 cast a lot 抽签。 vi. 1.抛出钓丝,垂钓。 2.〔英方〕呕吐。 3.计算。 4.占卜,算卦;〔古语〕预测;筹划。 5.〔苏格兰语〕褪色。 6.【打猎】分头追寻。 7.【航海】改变航向。 8.浇铸成形。 9.产。 Timber casts. 木料会起翘。 Overheated metals may cast badly. 加热过甚的金属可能难浇铸成型。 The wheat casts well. 小麦年景好。 cast about 1. 设法,计划。 2. 【航海】掉转航向。 cast about for 1. 找,寻觅;搜集;物色。 2. 考虑,想(方法等)。 3. (船)向…掉头。 cast ashore (浪把船)抛到岸上。 cast aside 抛弃,排除,废除(习惯等),消除(疑虑等)。 cast away 抛弃;浪费;排斥;使(船只)破坏( be cast away 漂流)。 cast back 退回;恢复;追溯;回想。 cast (sth. [sb.] )behind 把…抛在脑后;疏远。 cast(past deeds) behind one's back (把往事)忘掉,置之脑后。 cast (sth.) in sb.'s teeth 以(某事)当面责备某人。 cast beyond the moon 任意推测。 cast by 放弃;排除。 cast down 推倒,打掉;打倒;放低,压低;使胆寒 (be cast down 丧胆,意气沮丧)。 cast forth 抛出;逐出。 cast (in) one's lot with 与…共命运。 cast into the shade 使黯然失色;使向隅。 cast loose 解开,放开;(自行)放开。 cast off 1. 丢弃,脱掉(衣服);抛弃,放弃。 2. 【纺织;印染】织完,收针。 3. 【航海】放(船),解(缆)。 4. 【印刷】(据原稿)计划篇幅[版面]。 cast on 急忙穿上(衣服);起针编织。 cast oneself on [upon] 委身于,依赖,仰仗。 cast out 1. 扔出;逐出,赶出。 2. 吐出,呕吐。 3. 〔苏格兰语〕吵闹,争吵。 cast over 【纺织;印染】绕针。 cast up 1. 合计,计算。 2. 责备。 3. 呕吐,吐出。 4. 打上,摔上;堆起(泥土)。 5. 〔苏格兰语〕突然出现;(云)密集;责备 (to)。 n. 1.投;掷骰子;抛石子;撒网揿;垂钓;一掷,一举,试。 2.【冶金】浇铸,铸造;铸型,模子;铸成品。 3.(目光)投射;瞥见;轻微的斜视〔眼睛的一种缺陷〕。 4.(容貌、性质等的)特征;外观;倾向,型式;色调;种类。 5.计算。 6.角色分配,演员;演员表。 7.【航海】锤测。 8.【印刷】版;纸版,铅版。 9.(木板等的)反翘;(弓的)弹力。 10.脱落之物,(蛇的)蜕皮;(蚯蚓等翻到地面的)泥土(等)。 a bow's cast一箭的射程。 a cast of the net 撒一次网,一网。 a good cast(钓鱼或撒网的)好地方。 try another cast再试一试。 a cast in the eye 轻微的斜视。 a woman of the old cast旧式女人。 a man of noble cast人品高尚的人。 an all star cast名演员大会演。 castof features 容貌。 cast of mind 脾气。 cast of thought 思想倾向。 the last cast 最后一着;最后机会。
However , an explicit cast is needed to convert from 类型到整型的转换需要用显式类型转换来完成。
Instead the expression must include an explicit cast operation 相反,表达式必须包含显式转换操作。
For example , the following statement will produce a compilation error without an explicit cast 例如,不使用显式类型转换时,下列语句将产生编译错误:
You can never cast objects of sibling classes ( sharing the same parent ) , even with an explicit cast 你永远不可能转化具有同一个超类的类的对象,即使是刻意转化。
For example , the following statement generates a compiler error unless an explicit cast is used 例如,除非使用显式强制转换,否则以下语句将生成一个编译器错误:
Variable have incompatible data types , the expression requires an explicit cast as shown the second example 变量具有不兼容的数据类型,则表达式就需要进行显式转换,如第二个示例所示。
Operations that combine an unsigned eight - byte integer and a signed integer require an explicit cast in order to clarify the result format 兼具无符号八字节整数和有符号整数的运算需要显式转换才能使结果格式清楚明了。
This error occurs if you have code that attempts to convert two types that cannot be implicitly converted , such as in an assignment of a base type to a derived type that is missing an explicit cast 如果您的代码试图转换两种不能隐式转换的类型(例如将基类分配给一个缺少显式强制转换的派生类) ,将发生此错误。
Although we will not use an explicit cast in the code for the 5 . 0 benchmark , we do need to include it in the baseline measurement , as it is part of the work required to make the iteration useful 尽管对于5 . 0的基准测试我们不显式使用强制转换,但是我们需要在基线测量中加入它,因为这是使遍历具有实用性所必需的。